package com.springboot.dto;

import com.springboot.model.DoctorFieldForm;
import com.springboot.model.DoctorInfoForm;

import java.util.ArrayList;

/**
 * 单个医生视图，显示医生的信息
 */
public class Doctor {
    private DoctorInfoForm doctorInfoForm;
    private ArrayList<DoctorFieldForm> doctorFieldForms;

    public Doctor() {
        this.doctorFieldForms = new ArrayList<>();
    }

    public Doctor(DoctorInfoForm doctorInfoForm, ArrayList<DoctorFieldForm> doctorFieldForms) {
        this.doctorInfoForm = doctorInfoForm;
        this.doctorFieldForms = doctorFieldForms;
    }

    public DoctorInfoForm getDoctorInfoForm() {
        return doctorInfoForm;
    }

    public void setDoctorInfoForm(DoctorInfoForm doctorInfoForm) {
        this.doctorInfoForm = doctorInfoForm;
    }

    public ArrayList<DoctorFieldForm> getDoctorFieldForms() {
        return doctorFieldForms;
    }

    public void setDoctorFieldForms(ArrayList<DoctorFieldForm> doctorFieldForms) {
        this.doctorFieldForms = doctorFieldForms;
    }

    /*@Override
    public String toString() {
        return "Doctor{" +
                "doctorInfoForm:" + doctorInfoForm +
                ", doctorFieldForms:" + doctorFieldForms +
                '}';
    }*/
}
